<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Title</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/libs/layui/css/layui.css}"
          media="all">
    <style>
        .sss{
            width:1000px;
        }
    </style>

</head>
<body>

<div class="sss">
    <form class="layui-form" th:action="@{/login}" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <input type="text" name="email" id="email" lay-verify="email" autocomplete="off" placeholder="请输入电子邮箱" class="layui-input">
               <span th:text="${error}"></span>
<!--               <span th:text="${success}"></span>-->
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
                <input type="password" name="password" lay-verify="password" autocomplete="off" placeholder="请输入密码" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item input-item">
            <label class="layui-form-label">邮箱验证码:</label>
            <input id="checkCode" type="text" name="checkCode" class="layui-input" lay-verify="required" style="display: inline-block;width: 105px;"/>
            <button id="sendCheckCode" type="button" class="layui-btn layui-btn-normal" style="display: inline-block">获取验证码</button>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <select name="interest" >
                    <option value="1">老师端</option>
                    <option value="2" selected>学生端</option>
                </select>
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit"  class="layui-btn" lay-submit="" lay-filter="demo1">登录</button>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <div class="layui-btn" ay-filter="demo1"> <a  th:href="@{/zhuce}">注册</a></div>
            </div>
        </div>
    </form>
</div>



<script th:src="@{/js/jquery-1.8.3.js}"></script>
<script th:src="@{/libs/layui/layui.js}"></script>
<script th:src="@{/js/register.js}"></script>

</body>
</html>
